package com.kgc.community.pojo;

import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

public class Equipment {
    private Integer id;

    private String name;

    private String logo;

    private Long price;

    private Integer count;

    @DateTimeFormat(pattern="yyyy-MM-dd")
    private String buyTime;

    private Integer expectTime;

    private Integer villageId;

    @DateTimeFormat(pattern="yyyy-MM-dd")
    private String createTime;


     private  Village village;
    @Override
    public String toString() {
        return "Equipment{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", logo='" + logo + '\'' +
                ", price=" + price +
                ", count=" + count +
                ", buyTime='" + buyTime + '\'' +
                ", expectTime=" + expectTime +
                ", villageId=" + villageId +
                ", createTime='" + createTime + '\'' +
                ", village=" + village +
                '}';
    }

    public Village getVillage() {
        return village;
    }

    public void setVillage(Village village) {
        this.village = village;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    public String getLogo() {
        return logo;
    }

    public void setLogo(String logo) {
        this.logo = logo == null ? null : logo.trim();
    }

    public Long getPrice() {
        return price;
    }

    public void setPrice(Long price) {
        this.price = price;
    }

    public Integer getCount() {
        return count;
    }

    public void setCount(Integer count) {
        this.count = count;
    }

    public Integer getExpectTime() {
        return expectTime;
    }

    public void setExpectTime(Integer expectTime) {
        this.expectTime = expectTime;
    }

    public Integer getVillageId() {
        return villageId;
    }

    public void setVillageId(Integer villageId) {
        this.villageId = villageId;
    }

    public String getBuyTime() {
        return buyTime;
    }

    public void setBuyTime(String buyTime) {
        this.buyTime = buyTime;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }
}